package com.beiding.my.bemapping;

import java.lang.reflect.Field;

public class BeFieldMapper {

    BeFieldMapper() {

    }

    //一定是标记可见的
    Field field;

    String name;

    private String id = Id.field();

    //数据中对应的列名
    String colName;

    public String getName() {
        return name;
    }

    public Field getField() {
        return field;
    }

    public String getColName() {
        return colName;
    }

    public String getId() {
        return id;
    }

    public void set(Object be, Object value) {
        try {
            field.set(be,value);
        } catch (IllegalAccessException e) {
            throw new RuntimeException(e);
        }
    }

}
